<?php 
/*
* 自建页面模板
* 和阅读日志页面差不多
*/
if(!defined('EMLOG_ROOT')) {exit('error!');} 
?>
<div id="detail" style="display:none;">
<font size="4"><b>正在为您提交评论，请稍等...</b></font>
</div>
<div id="content" class="single">
	<div class="sitemap cbx">
		<a href="<?php echo BLOG_URL; ?>" title="返回博客主页">首页</a>
		&nbsp;&raquo;&nbsp;独立页面&nbsp;&raquo;&nbsp;
		<?php echo $log_title; ?>
	</div>
	<div class="cbx post">
		<h2>
			<?php echo $log_title; ?>
		</h2>
		<div class="postmeta">
		    <?php if (strpos($_SERVER['REQUEST_URI'],'plugin=kl_album')) { echo '欢迎访问 '.BLOG_NAME.' - '.$kl_album_title.' | <a href="'.BLOG_URL.'">返回博客首页</a> | <a href="'.BLOG_URL.'?plugin=kl_album">返回相册首页</a>' ; } else { ?>
			<ul>
				<li class="meta-date">
					<a href="<?php echo BLOG_URL; ?>?record=<?php echo gmdate('Yn', $date); ?>" title="发布时间：<?php echo gmdate('Y-n-j G:i', $date); ?> | 单击查看该月的文章存档"><?php echo gmdate('Y-n-j G:i', $date); ?></a>
				</li>
				<li class="meta-views">
					<a href="javascript:;" title="热度：<?php echo $views; ?> ℃" onclick="alert('该页面的热度达到了 <?php echo $views; ?> ℃呢')"><?php echo $views; ?> ℃</a>
				</li>
				<li class="meta-comments">
					<a href="#comments"
						title="页面 <?php echo $log_title; ?> 的评论共有 <?php echo $comnum; ?> 条"><?php echo $comnum; ?> 条评论</a>
				</li>	
			</ul>
			<?php } ?>
			<div class="clear"></div>
		</div>
		
		<div class="post-content">
<?php if (strpos($_SERVER['REQUEST_URI'],'plugin=kl_album')) { } else { echo '<div class="post-content-text">' ; } ?>
			
				<?php echo $log_content; ?>
<p class="att"><?php blog_att($logid); ?></p>
<?php if (strpos($_SERVER['REQUEST_URI'],'plugin=kl_album')) { }  else { echo '</div>' ; } ?>
<?php doAction('log_related', $logData); ?>
			<div class="postmeta" style="background-image:none;background-attachment:scroll;border-width:0px 0px 1px;border-style:none none dashed;border-bottom-color:#cccccc;font-family:inherit;font-size:13px;font-style:inherit;list-style:none outside none;margin:6px 0px 10px;outline:none 0px;padding:0px 0px 8px;vertical-align:baseline;color:#666666;height:16px;background-position:0px 0px;background-repeat:repeat repeat;">
			</div>
<div class="bdlikebutton"></div>
<!-- 将此代码放在适当的位置，建议在body结束前 -->
<script id="bdlike_shell"></script>
<div class="writerinfodiv input-group">
					<span class="input-group-addon">本文地址</span>
					<input type="url" class="form-control" id="x_this_logurl" value="<?php echo Url::log($logid); ?>" >
					<span class="input-group-addon" onclick="wmzz_copy(document.getElementById('x_this_logurl').value);">复制本文地址</span>
	</div>
<script id="bdlike_shell" _ue_org_tagname="script"></script><script _ue_org_tagname="script">
var bdShare_config = {
	"type":"small",
	"color":"red",
	"uid":"6507883",
	"likeText":"顶一个",
	"likedText":"您已顶过",
	"share":"yes"
};
document.getElementById("bdlike_shell").src="http://bdimg.share.baidu.com/static/js/like_shell.js?t=" + Math.ceil(new Date()/3600000);
</script>
<p>
    <br />
</p>
<?php if (strpos($_SERVER['REQUEST_URI'],'plugin=kl_album')) { echo '<br/><br/><!-- Duoshuo Comment BEGIN -->
	<div class="ds-thread"></div>
<script type="text/javascript">
var duoshuoQuery = {short_name:"zhizhe8"};
	(function() {
		var ds = document.createElement(\'script\');
		ds.type = \'text/javascript\';ds.async = true;
		ds.src = \'http://static.duoshuo.com/embed.js\';
		ds.charset = \'UTF-8\';
		(document.getElementsByTagName(\'head\')[0] 
		|| document.getElementsByTagName(\'body\')[0]).appendChild(ds);
	})();
	</script>
<!-- Duoshuo Comment END -->' ; } ?>
			<div class="clear"></div>
		</div>
	</div>

		<?php blog_comments_post($logid,$ckname,$ckmail,$ckurl,$verifyCode,$allow_remark);blog_comments($comments) ?>
	<?php 
if (strpos($_SERVER['REQUEST_URI'],'plugin=kl_album')) 
{
echo blog_comments_post($logid,$ckname,$ckmail,$ckurl,$verifyCode,$allow_remark);
} ?>
</div>
<?php
 include View::getView('side');
 include View::getView('footer');
?>